package com.darker.secking.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@AllArgsConstructor
@ToString
public enum RespBeanEnum {
    //通用
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),
    //登录模块
    ADMIN_ERROR(5001,"用户名或密码为空"),


    PHONE_ERROR(5002,"手机号码格式错误"),
    PASSWD_ERROR(5003,"密码错误"),
    BIND_ERROR(5004,"参数绑定异常"),
    EMPTY_STOCK(500500,"库存不足"),
    REPEATE_ERROR(500501,"该商品每人限购一件"),
    LOGIN_ERROR(5000502,"请先进行登录"),
    PATH_ERROR(5000503,"秒杀路径不正确"),
    REQUEST_ILLEGAL(50000504,"获取验证码失败"),
    REQUEST_ERROR(5000505,"验证码错误，请重新输入"),
    SESSION_ERROR(5000506,"Session错误" ),
    ACCESS_LIMIT_REACHED(5000507,"访问过于频繁，请稍后再试" );
    private final Integer code;
    private final String message;
}
